<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;

class CreateMsgsTable extends Migration {
	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up() {
		Schema::create('msgs', function (Blueprint $table) {
			$table->increments('id');
			$table->integer('send_id')->comment('发送者ID');
			$table->integer('rece_id')->comment('接收者ID');
			$table->text('content')->comment('发送内容');
			$table->tinyInteger('status')->comment('发送状态');
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down() {
		Schema::drop('msgs');
	}
}
